import globals from 'globals'
import pluginJs from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import EslintConfigPrettier from 'eslint-config-prettier'

/** @type {import('eslint').Linter.Config[]} */
export default [
  {
    ignores: ['./node_modules/**', './dist/**', './lib/**', './public/version/**', 'yarn.lock', '.vscode'],
    files: ['**/*.{js,mjs,cjs,vue}']
  },
  { languageOptions: { globals: globals.browser } },
  pluginJs.configs.recommended,
  ...pluginVue.configs['flat/essential'],
  EslintConfigPrettier
]
